package com.zu.commu.context;

import com.zu.commu.dataSource.conf.DbConfigVO;
import com.zu.commu.dataSource.imp.pool.NcsDataSourceManager;

import java.util.ArrayList;
import java.util.Hashtable;

public final class ServerContext
{
  public static int remotePort = 9000;
  public static int localPort = 9001;

  public static Boolean remoteServerStarted = Boolean.valueOf(false);
  public static Boolean localServerStarted = Boolean.valueOf(false);
  public static Boolean GSMServerStarted = Boolean.valueOf(false);

  public static int bufferSizeForReadRemoteSocket = 1024;
  public static int bufferSizeForReadLocalSocket = 512;

  public static int minThreadNumRemote = 1;
  public static int maxThreadNumRemote = 3;

  public static int minThreadNumLocal = 1;
  public static int maxThreadNumLocal = 3;

  public static long cleanSocketCommandIdThreadSleepTime = 600000L;
  public static long commandIdExistTime = 300000L;

  public static String toCenterType = "socket";
  public static String toCenterURL = "http://localhost:8080/receiveResult";
  public static String fromCenterType = "socket";

  public static long flagSocketOutLineThreadSleepTime = 60000L;
  public static int noHearBeatTimes = 5;

  public static boolean useLocalDatabase = false;

  public static Boolean GSMServerEnabled = Boolean.valueOf(false);
  public static String GSMServerDevice = null;
  public static Integer GSMServerBaud = null;
  public static String GSMServerSN = null;
  public static Boolean GSMDebug = null;
  public static String GSMDebugSimNO = null;
  public static String DebugSavePath = null;

  public static String[] GPRSProtocolNames = null;
  public static String[] meterProtocolNames = null;
  public static Hashtable<String, String> GPRSProtocol_DriverNames = null;
  public static Hashtable<String, String> meterProtocol_DriverNames = null;
  public static Hashtable GPRSProtocol_Drivers = null;
  public static Hashtable meterProtocol_Drivers = null;
  public static Hashtable<String, String> GPRSID_GPRSProtocol = null;
  public static Hashtable<String, String> GPRSID_meterProtocol = null;
  public static Hashtable<String, ArrayList> GPRSProtocol_GPRSID = null;
  public static Hashtable<String, ArrayList> meterProtocol_GPRSID = null;
  public static Hashtable<String, String> GPRSProtocol_sendHeartBeat = null;
  public static Hashtable<String, String> GPRSProtocol_heartBeatString = null;
  public static Hashtable<String, String> GPRSProtocol_heartBeatTime = null;
  public static Hashtable<String, String> GPRSProtocol_returnHeartBeat = null;
  public static Hashtable<String, String> meterProtocol_sendOrderTimes = null;
  public static Hashtable<String, String> meterProtocol_sendOrderWaitTime = null;
  public static DbConfigVO[] dbvos;
  public static String[] dataSourceNames;
  public static NcsDataSourceManager DBSManager;
  public static String saveDataClass;
  public static String xmlFileDir;
  public static int localSaveDate;
  public static int saveDataThreadNum = 2;
}